package com.Saenko.GPS;

public class Coordinate {
	private int hour;
	public int getHour() 
	{
	       return hour;
	}
	public void setHour(int hour) 
	{
       this.hour = hour;
       if (hour < 10)
		{
			this.StrHour = "0"+hour; 
		}
	}
	
	private double minute;
	public double getMinute() 
	{
	       return minute;
	}
	public void setMinute(double minute) 
	{
		if (minute < 10)
		{
			this.StrMinute = "0"+minute; 
		}
	   this.minute = minute;
	}
	
	private double second;
	public double getSecond() 
	{
	       return second;
	}
	public void setSecond(double second) 
	{
	   this.second = second;
	   if (second < 10)
		{
			this.StrSecond = "0"+second; 
		}
	}

	private char NSEW;
	public char getNSEW() 
	{
	       return NSEW;
	}
	public void setNSEW(char NSEW) 
	{
	   this.NSEW = NSEW;
	   if ((NSEW == 'W') || (NSEW == 'E'))
		{
			//this.StrSecond = "0"+second; 
		   if (minute < 100)
			{
				StrMinute = "0"+minute; 
			}
		   if (minute < 10)
			{
			   StrMinute = "00"+minute; 
			}
		}
	}
	public String StrHour;
	public String StrMinute;
	public String StrSecond;
	/*
	 * �������� �����������, ���� ������� , �� �������� "���� ������ 10"
	 * ���� ������, �� �������� "���� ������ 10 � ������ 100"
	 * � ��������� "0" ����� ����������.
	 * 
	 */


}
